#include "apue.h"

int main() {
	char buf[MAXLINE] = "hello";
	int fd = open("test", O_RDWR | O_APPEND);
	int off = lseek(fd, 4, SEEK_SET);
//	int n = read(fd, buf, 4);
//	printf("buf = %s\n", buf);
	int n2 = write(fd, buf, 5);
	printf("n2 = %d\n", n2);
	return 0;
}
